package office.action.sale.form;

import office.bo.sale.impl.ProductDetail;
import platform.common.bo.IIdentifiableObj;
/**
 * 产品明细对应的Form
 * @author ZhangYQ
 *
 */
public class ProductDetailForm {
	private String id;
	private String productName; //产品名称
	private String productSpec; //产品规格
	private String speciality;  //产品优缺点
	private String mark;        //备注
	private String rivalId;     //对应的竞争对手
	
	public IIdentifiableObj copyPropertiesToBO(IIdentifiableObj newObj) {
		ProductDetail bo = (ProductDetail)newObj;
		bo.setId(this.id);
		bo.setProductName(productName);
		bo.setProductSpec(productSpec);
		bo.setSpeciality(speciality);
		bo.setMark(mark);
		bo.setRivalId(rivalId);
		return bo;
	}
	
	public void copyPropertiesFromBO(IIdentifiableObj baseBO) {
		ProductDetail bo = (ProductDetail)baseBO;
		this.id = bo.getId().toString();
		this.productName = bo.getProductName();
		this.productSpec = bo.getProductSpec();
		this.speciality = bo.getSpeciality();
		this.mark = bo.getMark();
		this.rivalId = bo.getRivalId();
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public String getProductSpec() {
		return productSpec;
	}

	public void setProductSpec(String productSpec) {
		this.productSpec = productSpec;
	}

	public String getSpeciality() {
		return speciality;
	}

	public void setSpeciality(String speciality) {
		this.speciality = speciality;
	}

	public String getMark() {
		return mark;
	}

	public void setMark(String mark) {
		this.mark = mark;
	}

	public String getRivalId() {
		return rivalId;
	}

	public void setRivalId(String rivalId) {
		this.rivalId = rivalId;
	}
	
}
